﻿using Studio77.GuessTheWordsWin8.Pages;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

// “用户控件”项模板在 http://go.microsoft.com/fwlink/?LinkId=234236 上提供

namespace Studio77.GuessTheWordsWin8.Views
{
    public sealed partial class KeyboardItem : UserControl
    {
        public string Content { get; set; }

        public KeyboardItem()
        {
            this.InitializeComponent();
        }

        private void btnContent_Click(object sender, RoutedEventArgs e)
        {
            //通知
            GamePage.GamePageInstance.touchKey(Content);
        }

        public void SetContent(string content)
        {
            Content = content;
            this.btnContent.Content = Content;
        }
    }
}
